import Layout from '/@vab/layouts/index.vue'
import { VabRouteRecordRaw } from '../types'
const goodsRouter: VabRouteRecordRaw[] = [
  {
    path: '/goods',
    name: 'Goods',
    component: Layout,
    meta: {
      title: '商品',
      icon: 'shopping-bag-3-line',
    },
    children: [
      {
        path: 'goodsManagement',
        name: 'GoodsManagement',
        component: () => import('/@/views/goods/GoodsManagement.vue'),
        meta: {
          title: '商品管理',
          icon: 'home-2-line',
        },
      },
      {
        path: 'goodsTag',
        name: 'GoodsTag',
        component: () => import('/@/views/goods/GoodsTag.vue'),
        meta: {
          title: '商品分组',
          icon: 'home-2-line',
        },
      },
      {
        path: 'parameterDictionary',
        name: 'ParameterDictionary',
        component: () => import('/@/views/goods/ParameterDictionary.vue'),
        meta: {
          title: '参数字典',
          icon: 'home-2-line',
        },
      },
    ],
  },
]

export default goodsRouter
